﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta property="og:title" content="@ViewBag.FilmTitle" />
        <meta property="og:image" content="@ViewBag.FilmImage" />
        <title>@ViewBag.Title</title>
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
        @Scripts.Render("~/bundles/jquery")
        @Scripts.Render("~/bundles/ajax")
        @RenderSection("kendo", required: false)
    </head>
    <body>

        <div id="fb-root"></div>
        <script>
            (function (d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id))
                    return;
                js = d.createElement(s);
                js.id = id;
                js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=566390653429738";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
        </script>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    @Html.ActionLink("Movies Room", "Index", "Home", null, new { @class = "brand" })
                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            @if (User.Identity.IsAuthenticated)
                            {
                                                            <li>@Html.ActionLink("My Tickets", "MyTickets", "Ticket") </li>
                            }
                            @if (User.IsInRole("admin"))
                            {
                                <li class="dropdown nav-item">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                        Administration <b class="caret"></b>
                                    </a>
                                    <ul class="dropdown-menu">
                                        <li>
                                            <a href="/Administration/Admin/Films">Films</a>
                                        </li>
                                        <li>
                                            <a href="/Administration/AdminTicket/Index">Tickets</a>
                                        </li>
                                        <li>
                                            <a href="/Administration/Admin/Categories">Categories</a>
                                        </li>
                                        <li>
                                            <a href="/Administration/AdminVotes/Index">Votes</a>
                                        </li>
                                    </ul>
                                </li>
                            }
                        </ul>
                        @Html.Partial("_LoginPartial")
                    </div>
                </div>
            </div>
        </div>
        <div class="container">
            @RenderBody()
            <hr />
            <footer>
                <p>&copy; @DateTime.Now.Year - Movies Room</p>
            </footer>
        </div>

        @Scripts.Render("~/bundles/bootstrap")
        @RenderSection("scripts", required: false)
    </body>
</html>

